FROM haxe:3.4

RUN apt-get update
RUN apt-get install -y libgl1-mesa-dev libglu1-mesa-dev g++ g++-multilib gcc-multilib libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev
RUN haxelib install hxcpp
RUN git clone https://github.com/jgranick/format ~/format --depth 1
RUN haxelib dev format ~/format
RUN haxelib install mcover
RUN haxelib install hamcrest
RUN git clone https://github.com/openfl/munit ~/munit --depth 1
RUN haxelib dev munit ~/munit/src
RUN cd ~/munit/tool && haxe build.hxml

## Install awscli
RUN apt-get update
RUN apt-get install -y build-essential git curl python
RUN curl -O https://bootstrap.pypa.io/get-pip.py && python get-pip.py
RUN pip install awscli awsebcli
RUN apt-get clean